package cn.jeeweb.web.modules.sys.entity;

import cn.jeeweb.common.annotate.UiPropertyField;
import cn.jeeweb.common.flag.ObjectMark;
import cn.jeeweb.common.mvc.entity.DataEntity;
import cn.xjzn.framework_Core.ModuleServe;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * @title: sys_group实体
 * @description: sys_config实体
 */

@TableName("sys_group")
@SuppressWarnings("serial")
public class SysGroup extends DataEntity<String> implements ObjectMark {

    /**编码*/
    @TableField(value = "code")
	@UiPropertyField(moduleId = ModuleServe.sysGroupModule,propertyName = "code",labelText="编码")
	private String code;
    /**名称*/
    @TableField(value = "name")
	@UiPropertyField(moduleId = ModuleServe.sysGroupModule,propertyName = "name",labelText="名称")
	private String name;
    /**组织机构id*/
    @TableField(value = "organizationId")
	@UiPropertyField(moduleId = ModuleServe.sysGroupModule,propertyName = "id",aliasName = "organizationId",labelText="机构id",ownerPropertyName = "organization",isReference = 1,referenceModuleId = ModuleServe.organizationModule)
	private String organizationId;

	@TableField(exist = false)
	private Organization organization;

	@TableField(exist = false)
	private String[] organizationIds;

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getOrganizationId() {
		return organizationId;
	}

	public void setOrganizationId(String organizationId) {
		this.organizationId = organizationId;
	}

	public Organization getOrganization() {
		return organization;
	}

	public void setOrganization(Organization organization) {
		this.organization = organization;
	}

	public String[] getOrganizationIds() {
		return organizationIds;
	}

	public void setOrganizationIds(String[] organizationIds) {
		this.organizationIds = organizationIds;
	}
}